package dierweek;

import java.util.Scanner;

public class sushu {
    public static void main(String[] args) {
        int num;
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入一个数");
        num = scanner.nextInt();
        Boolean flag = true;
        for (int i = 0; i < num; i++) {
            if (num % 2 == 0) {
                flag = true;
                break;
            }
        }
        if (flag) {
            System.out.println(+num + "是素数");
        } else {
            System.out.println(+num + "不是素数");
        }
    }
}
